<?php

namespace app\admin\service\platform;


use app\admin\model\platform\GameJackpotModel;
use app\admin\service\BaseService;

/**
 * @author tangsan
 * @package app\admin\model
 */
class GameJackpotService extends BaseService
{
    /**
     * 构造函数
     * @author tangsan
     */
    public function __construct()
    {
        $this->model = new GameJackpotModel();
    }

    public function getGameList()
    {
        $list = $this->model
            ->field("ID,JackpotName")
            ->order("ID asc")
            ->select()
            ->toArray();

        // 字符窜转整型
        $list = array_map(function ($value){
            $value['ID'] = $value['ID'] + 0;
            return $value;
        }, $list);
        return message("操作成功", true, $list);
    }
}